Skip to content

Bracket IPv6 literals in prompt strings - #2435

Merged
rolandwalker merged 1 commit into
mainfrom
RW/bracket-ipv6-hostnames-in-prompt
Nov 14, 2026
Merged

rolandwalker merged 1 commit into
mainfrom
RW/bracket-ipv6-hostnames-in-prompt

Conversation

@rolandwalker

Copy link
Copy Markdown
Contributor

Description

Bracket IPv6 literals in prompt strings, to match DSNs, in which bracketing was already required.

Switch to ipaddress from the stdlib to detect IPv6 literals, rather than checking for a colon character.

Checklist

  • I added this contribution to the changelog.md file.
  • I added my name to the mycli/AUTHORS.txt file (or it's already there).
  • To lint and format the code, I ran
    uv run ruff check && uv run ruff format && uv run mypy --install-types .

to match DSNs, in which bracketing was already required.

Switch to ipaddress from the stdlib to detect IPv6 literals, rather
than checking for a colon character.
@rolandwalker

Copy link
Copy Markdown
Contributor Author

cc @Kernel-Hunter

@rolandwalker rolandwalker self-assigned this Nov 14, 2026
@rolandwalker
rolandwalker merged commit 139c514 into main Nov 14, 2026
13 checks passed
@rolandwalker
rolandwalker deleted the RW/bracket-ipv6-hostnames-in-prompt branch November 14, 2026 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant